How to write this function in one line of code

welcome to shbcf.ru